﻿<UserControl x:Class="QSSilverlightCSharp.BasicPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  MinHeight="316" MinWidth="596">
    <Grid x:Name="LayoutRoot" Background="White">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid  Grid.Column="0" Grid.Row="0" Name="grid1" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"   />
                    <ColumnDefinition Width="150" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <TextBlock Grid.Column="0" Grid.Row="0" VerticalAlignment="Center">First Name</TextBlock>
            <TextBox Grid.Column="1" Grid.Row="0" HorizontalScrollBarVisibility="Auto" Text="{Binding FirstName, Mode=TwoWay}"/>
                <TextBlock Grid.Column="0" Grid.Row="1" VerticalAlignment="Center">Last Name</TextBlock>
                <TextBox Grid.Column="1" Grid.Row="1" Text="{Binding LastName, Mode=TwoWay}"/>
                <TextBlock Grid.Column="0" Grid.Row="2" VerticalAlignment="Center">Age</TextBlock>
                <TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Age, Mode=TwoWay}"/>
                <TextBlock Grid.Column="0" Grid.Row="3" VerticalAlignment="Center">Email</TextBlock>
                <TextBox Grid.Column="1" Grid.Row="3"  Text="{Binding EmailAddress, Mode=TwoWay}"/>
                <TextBlock Grid.Column="0" Grid.Row="4" VerticalAlignment="Center">Phone</TextBlock>
                <TextBox Grid.Column="1" Grid.Row="4"  Text="{Binding PhoneNumber, Mode=TwoWay, }"/>
                <TextBlock Grid.Column="0" Grid.Row="5" VerticalAlignment="Center">Credit Card Number</TextBlock>
                <TextBox Grid.Column="1" Grid.Row="5" Text="{Binding CreditCardNumber, Mode=TwoWay}"/>
                <TextBlock Grid.Column="0" Grid.Row="6" VerticalAlignment="Center">Order Total</TextBlock>
                <TextBox Grid.Column="1" Grid.Row="6" Text="{Binding OrderTotal, Mode=TwoWay}"/>
                <TextBlock Grid.Column="0" Grid.Row="7" VerticalAlignment="Center">Address Line 1</TextBlock>
                <TextBox Grid.Column="1" Grid.Row="7" Text="{Binding Address.AddressLine1, Mode=TwoWay}"/>
                <TextBlock Grid.Column="0" Grid.Row="8" VerticalAlignment="Center">Address Line 2</TextBlock>
                <TextBox Grid.Column="1" Grid.Row="8" Text="{Binding Address.AddressLine2, Mode=TwoWay}"/>
            </Grid>
            <TextBox Name="errorTextBox" Grid.Row="0" Grid.Column="1"/>
            <Button Grid.Column="1" Grid.Row="1" Height="Auto" HorizontalAlignment="Right"  Name="closeButton" VerticalAlignment="Top" Width="Auto" Click="closeButton_Click" Content="Validate and Close"/>
        </Grid>
</UserControl>
